import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/statistical',
    name: 'statistical',
    redirect: '/statistical/statistical_analysis ',
    meta: {
      title: '统计分析',
      icon: 'lucide:chart-line',
      order: 2300,
      hideInMenu: false,
      keepAlive: true,
    },
    children: [
      {
        path: '/statistical/charge_report',
        name: 'charge_report',
        meta: {
          title: '收费报表',
          hideInMenu: false,
          keepAlive: true,
        },
        children: [
          {
            path: '/statistical/charge_report/daily_charge_report',
            name: 'daily_charge_report',
            meta: {
              title: '收费日报明细表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () =>
              import('#/views/statistical/dailyChargeReport.vue'),
          },
          {
            path: '/statistical/charge_report/user_charge_report',
            name: 'user_charge_report',
            meta: {
              title: '用户收费明细表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () => import('#/views/statistical/userChargeReport.vue'),
          },
          {
            path: '/statistical/charge_report/receivable_charge_report',
            name: 'receivable_charge_report',
            meta: {
              title: '应收生成明细表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () =>
              import('#/views/statistical/receivableChargeReport.vue'),
          },
          {
            path: '/statistical/charge_report/history_charge_report',
            name: 'history_charge_report',
            meta: {
              title: '历年缴费明细表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () =>
              import('#/views/statistical/historyChargeReport.vue'),
          },
        ],
      },
      {
        path: '/statistical/basics_report',
        name: 'basics_report',
        meta: {
          title: '基础报表',
          hideInMenu: false,
          keepAlive: true,
        },
        children: [
          {
            path: '/statistical/basics_report/heat_exchange_report',
            name: 'heat_exchange_report',
            meta: {
              title: '换热站报表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () =>
              import('#/views/statistical/heatExchangeReport.vue'),
          },
          {
            path: '/statistical/basics_report/village_report',
            name: 'village_report',
            meta: {
              title: '小区报表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () => import('#/views/statistical/villageReport.vue'),
          },
          {
            path: '/statistical/basics_report/user_report',
            name: 'user_report',
            meta: {
              title: '用户明细报表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () => import('#/views/statistical/userReoirt.vue'),
          },
          {
            path: '/statistical/basics_report/area_change_report',
            name: 'area_change_report',
            meta: {
              title: '面积变更表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () => import('#/views/statistical/areaChangeReport.vue'),
          },
        ],
      },
      {
        path: '/statistical/inspection_report',
        name: 'inspection_report',
        meta: {
          title: '稽查报表',
          hideInMenu: false,
          keepAlive: true,
        },
        children: [
          {
            path: '/statistical/inspection_report/heating_supply_suspension',
            name: 'heatingSupplySuspension',
            meta: {
              title: '供热报停明细表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () =>
              import('#/views/statistical/heatingSupplySuspension.vue'),
          },
          {
            path: '/statistical/inspection_report/heating_inspection',
            name: 'heatingInspection',
            meta: {
              title: '供热稽查明细表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () =>
              import('#/views/statistical/heatingInspection.vue'),
          },
          {
            path: '/statistical/inspection_report/switch_bolt',
            name: 'switchBolt',
            meta: {
              title: '开关栓明细表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () => import('#/views/statistical/switchBoltReport.vue'),
          },
          {
            path:'/statistical/inspection_report/regional_summary',
            name:'regionalSummary',
            meta:{
              title:'区域汇总表',
              hideInMenu:false,
              keepAlive:true
            },
            component:()=>import('#/views/statistical/regionalSummaryReport.vue')
          }
        ],
      },
      {
        path: '/statistical/suummary',
        name: 'suummary',
        meta: {
          title: '汇总报表',
          hideInMenu: false,
          keepAlive: true,
        },
        children: [
          {
            path: '/statistical/suummary/area_suummary_report',
            name: 'areaSuummaryReport',
            meta: {
              title: '面积报表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () =>
              import('#/views/statistical/areaSuummaryReport.vue'),
          },
          {
            path: '/statistical/suummary/year_report',
            name: 'yearReport',
            meta: {
              title: '年度报表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () => import('#/views/statistical/yearReport.vue'),
          },
          {
            path: '/statistical/suummary/payment_methods_report',
            name: 'paymentMethodsReport',
            meta: {
              title: '缴费方式汇总表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () =>
              import('#/views/statistical/paymentMethodsReport.vue'),
          },
          {
            path: '/statistical/suummary/changes_receivable',
            name: 'changesReceivable',
            meta: {
              title: '应收变动汇总表',
              hideInMenu: false,
              keepAlive: true,
            },
            component: () =>
              import('#/views/statistical/changesReceivable.vue'),
          },
          {
            path:'/statistical/suummary/heating_fee_report',
            name:'heatingFeeReport',
            meta:{
              title:'暖费大表',
              hideInMenu:false,
              keepAlive:true
            },
            component:()=>import('#/views/statistical/HeatingFeeReport.vue')
          }
        ],
      },
    ],
  },
];
export default routes;
